package com.gaofeng.day11;

/**
 * @author gaofeng
 * @date 2024-12-22 - 21:32
 */
public class demo08 {
    public static void main(String[] args) {
       double s1 = sum(8,3);
       double s2 = sum(3,4);
        String isFlag = compare(s1,s2);
        System.out.println(isFlag);
    }

    public static double sum(int w,int h){
       return w*h;
    }

    public static String compare(double data1,double data2) {
        double data = data1 - data2;
        if (data > 0){
            return "第一个面积大";
        }else if (data < 0){
            return  "第二个面积大";
        }else{
            return "两个相等";
        }
    }

}
